package com.android.dumiaogou.adapt;

import android.widget.ImageView;

import com.android.dumiaogou.model.detail.CollectStore;
import com.android.dumiaogou.utils.ObjectUtils;
import com.android.dumiaogou.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2016/8/10.
 */
public class listMineCollectStoreAdapt extends BaseQuickAdapter<CollectStore.DataBean.ListBean, BaseViewHolder> {
    public listMineCollectStoreAdapt(int layoutResId, List<CollectStore.DataBean.ListBean> data) {
        super(layoutResId, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, CollectStore.DataBean.ListBean listBean) {


        ObjectUtils.photo(mContext, listBean.getStore_logo(), ((ImageView) helper.getView(R.id.item_list_mine_collect_img)));

        helper.setText(R.id.item_list_mine_collect_title, listBean.getStore_name());
        helper.setText(R.id.item_list_mine_collect_number, listBean.getStore_fav_num() + "人关注");



    }





}
